package team.seekers.oj.codetest.dto;

import lombok.*;
import org.hibernate.validator.constraints.Length;
import team.seekers.oj.common.entity.BaseDTO;

import javax.validation.constraints.NotBlank;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = true)
public class DesCreateReqDTO extends BaseDTO {
    @Length(max = 60, message = "标题最大长度为 60")
    @NotBlank
    private String name;

    private Integer isPublic;

    private Long userId;

    private String description;

    private Long codeId;
}
